﻿using System;
using System.Collections.Generic;
using SKBKontur.Serialization.Binding;

namespace SKBKontur.CassandraLogging.Tests.Serialization.Helpers
{
    public class Utf8StringDictionaryClass
    {
        private Dictionary<String, String> Parameters = new Dictionary<string, string>();

        [Utf8StringBinder]
        public string Property1 { get; set; }

        [EnumBinder]
        public MockEnum Property2 { get; set; }

        [DateTimeBinder]
        public DateTime Property3 { get; set; }

        [Utf8StringDictionaryBinder("ParametersIndexer")]
        public string this[string name]
        {
            get { return Parameters[name]; }
            set { Parameters[name] = value; }
        }

        public IEnumerable<string> ParametersIndexer
        {
            get
            {
                return Parameters.Keys;
            }
        }
    }
}
